#ifndef FORMATVIEW_H
#define FORMATVIEW_H

#include <QTreeView>
#include "qevent.h"
#include "field/FieldDialog.h"

class FormatView : public QTreeView
{
    Q_OBJECT

public:
    FormatView(QWidget *parent = nullptr);

protected:
    void mouseDoubleClickEvent(QMouseEvent *event);

signals:
    void nodeDoubleClicked(const QModelIndex &index);

private:
    FieldDialog *dia{nullptr};
};

#endif // FORMATVIEW_H
